package com.liyang.microsevice.application1.controller;


import com.liyang.microservice.service1.api.ConsumerService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @version 1.0
 * @Title: ConsumerController
 * @description TODO
 * @date 2021/4/24 0024 20:36
 */
@RestController
public class Application1Controller {

    // @Reference
    @com.alibaba.dubbo.config.annotation.Reference
    private  ConsumerService consumerService;

    @GetMapping("/service")
    public String service() {
        String service = consumerService.service();
        return "test |"+service;
    }

}